from django.test import TestCase

# Create your tests here.

from celery import shared_task

from utils.exceptions import logger
from utils.sendmsg import send_message


@shared_task
def add(x, y):
    return x + y

@shared_task
def send(mobile,code):
    try:
        return send_message(mobile, code)
    except Exception as e:
        logger.error(f"发送短信失败:{e}")
